//
//  LogisticsTableViewCell.m
//  B2C
//
//  Created by 李小龙 on 2017/8/3.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import "LogisticsTableViewCell.h"

@implementation LogisticsTableViewCell

- (void)updateWithModel:(LogisticsListModel *)model indexPath:(NSIndexPath *)indexPath {
    if (indexPath.row == 0) {
        [self.pointImageView setImage:[UIImage imageNamed:@"dadian"]];
        self.lineViewTopLayout.constant = self.pointImageView.centerY;
        [self.contentLabel setTextColor:[UIColor orangePriceColor]];
        [self.timeLabel setTextColor:[UIColor orangePriceColor]];
    } else {
        [self.pointImageView setImage:[UIImage imageNamed:@"xiaodian"]];
        self.lineViewTopLayout.constant = 0;
        [self.contentLabel setTextColor:[UIColor grayTextColor]];
        [self.timeLabel setTextColor:[UIColor grayTextColor]];
    }
    
    [self.contentLabel setText:model.context];
    [self.timeLabel setText:model.time];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
